
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>全局配置 · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="datasource-config.html" />
    
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    简介
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" >
            
                <span>
            
                    
                    入门
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="../introduction/quick-start.html">
            
                <a href="../introduction/quick-start.html">
            
                    
                    快速开始
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="../introduction/install.html">
            
                <a href="../introduction/install.html">
            
                    
                    安装
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" >
            
                <span>
            
                    
                    配置
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter active" data-level="1.3.1" data-path="global-config.html">
            
                <a href="global-config.html">
            
                    
                    全局配置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="datasource-config.html">
            
                <a href="datasource-config.html">
            
                    
                    数据源配置
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" >
            
                <span>
            
                    
                    核心功能
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="../core/config-database.html">
            
                <a href="../core/config-database.html">
            
                    
                    添加数据源
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="../core/generic-crud.html">
            
                <a href="../core/generic-crud.html">
            
                    
                    通用 CRUD
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3" data-path="../core/accessor-api.html">
            
                <a href="../core/accessor-api.html">
            
                    
                    Accessor API
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >全局配置</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="globalconfig">GlobalConfig</h1>
<blockquote>
<p>workerId</p>
</blockquote>
<p>&#x5982;&#x679C;&#x4F7F;&#x7528; <code>Snowflake</code> &#x7B97;&#x6CD5;&#xFF0C;&#x6307;&#x5B9A; worker id&#x3002;&#x9ED8;&#x8BA4;&#x4E3A; <code>1</code></p>
<blockquote>
<p>dataCenterId</p>
</blockquote>
<p>&#x5982;&#x679C;&#x4F7F;&#x7528; <code>Snowflake</code> &#x7B97;&#x6CD5;&#xFF0C;&#x6307;&#x5B9A; data center id&#x3002;&#x9ED8;&#x8BA4;&#x4E3A; <code>1</code></p>
<blockquote>
<p>camlCaseToSnake</p>
</blockquote>
<p>&#x5982;&#x679C;&#x4E3A; <code>true</code>&#xFF0C;&#x5728;&#x6570;&#x636E;&#x5E93;&#x67E5;&#x8BE2;&#x64CD;&#x4F5C;&#x8FD4;&#x56DE;&#x7ED3;&#x679C;&#x540E;&#xFF0C;&#x586B;&#x5145; JavaBean &#x65F6;&#x4F1A;&#x5C1D;&#x8BD5;&#x5C06; Bean &#x4E2D;&#x7684;&#x6210;&#x5458;&#x53D8;&#x91CF;&#x8F6C;&#x6362;&#x4E3A;&#x4E0B;&#x5212;&#x7EBF;&#x7684;&#x547D;&#x540D;&#x65B9;&#x5F0F;&#xFF0C;&#x4ECE;&#x800C;&#x4E0E;&#x6570;&#x636E;&#x5E93;&#x8FD4;&#x56DE;&#x7684;&#x5217;&#x540D;&#x6B63;&#x786E;&#x5339;&#x914D;&#x5E76;&#x586B;&#x5145;&#x503C;&#x3002;&#x9ED8;&#x8BA4;&#x4E3A; <code>true</code></p>
<blockquote>
<p>debug</p>
</blockquote>
<p>&#x5982;&#x679C;&#x4E3A; <code>true</code>&#xFF0C;&#x5728;&#x6267;&#x884C; SQL &#x65F6;&#xFF0C;&#x4F1A;&#x5C06;&#x6267;&#x884C;&#x7684; SQL &#x5DF2;&#x7ECF; &#x586B;&#x5145;&#x4E4B;&#x540E; SQL &#x8BED;&#x53E5;&#x6253;&#x5370;&#x5230;&#x65E5;&#x5FD7;&#x4E2D;&#x3002;&#x9ED8;&#x8BA4;&#x4E3A; <code>false</code></p>
<blockquote>
<p>defaultPageLimit</p>
</blockquote>
<p>&#x6307;&#x5B9A;&#x9ED8;&#x8BA4;&#x7684;&#x5206;&#x9875;&#x5927;&#x5C0F;&#xFF0C;&#x5206;&#x9875;&#x67E5;&#x8BE2;&#x65F6;&#x4F7F;&#x7528;&#x3002;&#x9ED8;&#x8BA4;&#x4E3A; <code>10</code></p>
<blockquote>
<p>queryTimeout</p>
</blockquote>
<p>&#x8BBE;&#x7F6E; <code>Connection</code> &#x6267;&#x884C; SQL &#x8BED;&#x53E5;&#x65F6;&#x7684;&#x8D85;&#x65F6;&#x65F6;&#x95F4;&#xFF0C;&#x5982;&#x679C;&#x4E3A; <code>0</code> &#x8868;&#x793A;&#x6CA1;&#x6709;&#x9650;&#x5236;&#x3002;&#x5177;&#x4F53;&#x53EF;&#x4EE5;&#x67E5;&#x770B; <code>Statement#setQueryTimeout</code> &#x65B9;&#x6CD5;&#x3002;&#x9ED8;&#x8BA4;&#x4E3A; <code>0</code></p>
<blockquote>
<p>queryMaxRows</p>
</blockquote>
<p>&#x4E3A;&#x67E5;&#x8BE2;&#x64CD;&#x4F5C;&#x8BBE;&#x7F6E;&#x7ED3;&#x679C;&#x6700;&#x5927;&#x884C;&#x6570;&#x9650;&#x5236;&#xFF0C;&#x5982;&#x679C;&#x67E5;&#x8BE2;&#x7ED3;&#x679C;&#x8D85;&#x51FA;&#x6B64;&#x9650;&#x5236;&#xFF0C;&#x5269;&#x4F59;&#x7684;&#x884C;&#x6570;&#x5C06;&#x88AB;&#x5220;&#x9664;&#xFF0C;&#x5982;&#x679C;&#x4E3A; <code>0</code> &#x8868;&#x793A;&#x6CA1;&#x6709;&#x9650;&#x5236;&#x3002;&#x5177;&#x4F53;&#x53EF;&#x4EE5;&#x67E5;&#x770B; <code>Statement#setMaxRows</code> &#x65B9;&#x6CD5;&#x3002;&#x9ED8;&#x8BA4;&#x4E3A; <code>0</code></p>
<blockquote>
<p>maxFieldSize</p>
</blockquote>
<p>&#x8BBE;&#x7F6E;&#x67E5;&#x8BE2;&#x8FD4;&#x56DE;&#x7ED3;&#x679C;&#x4E2D;&#x6BCF;&#x5217;&#x7684;&#x5927;&#x5C0F;&#x9650;&#x5236;&#xFF0C;&#x5982;&#x679C;&#x8D85;&#x51FA;&#x8BE5;&#x9650;&#x5236;&#xFF0C;&#x591A;&#x4F59;&#x7684;&#x6570;&#x636E;&#x5C06;&#x88AB;&#x4E22;&#x5F03;&#x3002;&#x5982;&#x679C;&#x4E3A; <code>0</code> &#x8868;&#x793A;&#x6CA1;&#x6709;&#x9650;&#x5236;&#x3002;&#x5177;&#x4F53;&#x53EF;&#x4EE5;&#x67E5;&#x770B; <code>Statement#setMaxFieldSize</code> &#x65B9;&#x6CD5;&#x3002;&#x9ED8;&#x8BA4;&#x4E3A; <code>0</code></p>
<blockquote>
<p>closeAfterExecuted</p>
</blockquote>
<p>&#x8BBE;&#x7F6E;&#x5728;&#x8FDB;&#x884C;&#x589E;&#x5220;&#x6539;&#x67E5;&#x662F;&#x662F;&#x5426;&#x7ACB;&#x5373;&#x5173;&#x95ED;&#x6570;&#x636E;&#x5E93;&#x8FDE;&#x63A5;&#xFF0C;<code>true</code> &#x8868;&#x793A;&#x7ACB;&#x5373;&#x5173;&#x95ED;&#x3002;&#x9ED8;&#x8BA4;&#x4E3A; <code>false</code>&#xFF0C;&#x5373;&#x540C;&#x4E00;&#x4E2A;&#x7EBF;&#x7A0B;&#x4F7F;&#x7528;&#x540C;&#x4E00;&#x4E2A; &#x8FDE;&#x63A5;&#xFF0C;&#x9664;&#x975E;&#x4F60;&#x4E3B;&#x52A8;&#x8C03;&#x7528;&#x4E86;&#x5173;&#x95ED;&#x65B9;&#x6CD5;&#x3002;</p>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                
                <a href="datasource-config.html" class="navigation navigation-next navigation-unique" aria-label="Next page: 数据源配置">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"全局配置","level":"1.3.1","depth":2,"next":{"title":"数据源配置","level":"1.3.2","depth":2,"path":"config/datasource-config.md","ref":"config/datasource-config.md","articles":[]},"previous":{"title":"配置","level":"1.3","depth":1,"ref":"","articles":[{"title":"全局配置","level":"1.3.1","depth":2,"path":"config/global-config.md","ref":"config/global-config.md","articles":[]},{"title":"数据源配置","level":"1.3.2","depth":2,"path":"config/datasource-config.md","ref":"config/datasource-config.md","articles":[]}]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":[],"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"config/global-config.md","mtime":"2019-07-26T08:10:09.262Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2019-07-26T08:30:21.431Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

